import java.awt.Dimension;			//Holds the screen dimension
import java.awt.FlowLayout;			//Layout Manager
import java.awt.Toolkit;			//to get the screen dimension

/**
 * The MapApplication class defines the methods needed to get all components
 * for the RoutePlanner application to run properly.
 * 
 * Primarily it needs to set up the MapCanvas and controls to display maps.
 * 
 * @author mattcascone
 *
 */
public class MapApplication 
{
	/**
	 * The MapApplications run method is used to set up the components and display them properly.
	 * When the run method completes the RoutePlanner App should be displayed properly.
	 */
	public void run()
	{
		MapCanvas canvas = new MapCanvas();
		int height, width;
		
		//set the size of the canvas to most of screen
		Dimension screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();
		height = (int)(screenDimensions.getHeight() * .75);
		width = (int)(screenDimensions.getWidth() * .75);
		canvas.setSize(width, height);
		canvas.setVisible(true);
		canvas.setResizable(false);
		
	}
}
